import request from "@/utils/request";

// 授权码分页查询
export const pageQueryAuthorizationCode = async (params: any) => {
  return request.get("/security/authorizationCode/page", {
    params: params,
  });
}

// 授权码详情查询
export const getAuthorizationCodeById = async (id: number) => {
  return request.get(`/security/authorizationCode/get/${id}`);
}

// 根据ID删除授权码
export const deleteAuthorizationCodeById = async (id: number) => {
  return request.delete(`/security/authorizationCode/delete/${id}`);
}
